/*
		ServEngine framework library
		A library to fast develop JEE online applications
	
		Copyright 2008 José Ignacio de Córdoba Álvaro

		Licensed under the Apache License, Version 2.0 (the "License");
		you may not use this file except in compliance with the License.
		You may obtain a copy of the License at

				http://www.apache.org/licenses/LICENSE-2.0

		Unless required by applicable law or agreed to in writing, software
		distributed under the License is distributed on an "AS IS" BASIS,
		WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
		See the License for the specific language governing permissions and
		limitations under the License.
	
		Jose Ignacio de Cordoba Alvaro
		http://ignacio.decordoba.com
*/

package com.servengine.entry;

import com.servengine.struts.ValidatorForm;

import java.util.Date;

import org.apache.struts.upload.FormFile;

/**
 * En general esta clase se sobrecarga en el módulo y servicio necesario.
 */
public class EntryActionForm extends ValidatorForm
{
	protected Integer id, itemId, userId;//userId es el id del usuario que crea la entrada.
	protected String title, body, imgurl, userid, userName, email;//, itemType;
	protected boolean privateEntry;
	protected FormFile pictureFile;
	protected boolean hasPicture;

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getId()
	{
		return id;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	public String getTitle()
	{
		return title;
	}

	public void setBody(String body)
	{
		this.body = body;
	}

	public String getBody()
	{
		return body;
	}

	public void setImgurl(String imgurl)
	{
		this.imgurl = imgurl;
	}

	public String getImgurl()
	{
		return imgurl;
	}

	public void setUserName(String userName)
	{
		this.userName = userName;
	}

	public String getUserName()
	{
		return userName;
	}

/*	public void setItemType(String value)
	{
		this.itemType = value;
	}

	public String getItemType()
	{
		return itemType;
	}*/

	public void setItemId(Integer itemId)
	{
		this.itemId = itemId;
	}

	public Integer getItemId()
	{
		return itemId;
	}

	public void setPrivateEntry(boolean isPrivateEntry)
	{
		this.privateEntry = isPrivateEntry;
	}

	public boolean isPrivateEntry()
	{
		return privateEntry;
	}

	public void setPictureFile(FormFile pictureFile)
	{
		this.pictureFile = pictureFile;
	}

	public FormFile getPictureFile()
	{
		return pictureFile;
	}

	public void setHasPicture(boolean hasPicture)
	{
		this.hasPicture = hasPicture;
	}

	public boolean isHasPicture()
	{
		return hasPicture;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	public String getEmail()
	{
		return email;
	}

	public void setUserId(Integer userId)
	{
		this.userId = userId;
	}

	public Integer getUserId()
	{
		return userId;
	}

	public void setUserid(String userid)
	{
		this.userid = userid;
	}

	public String getUserid()
	{
		return userid;
	}
}
